/**
 * Created by aresn on 16/8/22.
 */

const routers = {
    '/home': {
        name:'Home',
        component (resolve) {
            require(['../views/Home.vue'], resolve);
        }
    },
    '/index': {
        name:'appload',
        component (resolve) {
            require(['../views/index.vue'], resolve);
        }
    },
    /*服务中心-首页*/
    '/enterprise/home':{
        name:'enterpriseHome',
        component(resolve){
            require(['../views/enterprise/enterpriseHome.vue'],resolve);
        }
    },

    /*服务中心-全部订单*/
    '/enterprise/orders/:tab':{
        name:'enterpriseOrder',
        component(resolve){
            require(['../views/enterprise/enterpriseOrder.vue'],resolve);
        }
    },

    /*服务中心-订单搜索*/
    '/enterprise/orders/search':{
        name:'enterpriseOrderSearch',
        component(resolve){
            require(['../views/enterprise/enterpriseOrderSearch.vue'],resolve);
        }
    },

    /*服务中心-订单详情*/
    '/enterprise/order/:id':{
        name:'enterpriseOrderDetail',
        component(resolve){
            require(['../views/enterprise/enterpriseOrderDetail.vue'],resolve);
        }
    },

    /*服务中心-取消维修*/
    '/enterprise/order/cancel/:id':{
        name:'orderCancel',
        component(resolve){
            require(['../views/enterprise/orderCancel.vue'],resolve);
        }
    },

    /*服务中心-评价列表*/
    '/enterprise/comments':{
        name:'enterpriseComments',
        component(resolve){
            require(['../views/enterprise/enterpriseComments.vue'],resolve);
        }
    },

    /*服务单位-列表路由*/
    '/enterprise/list/:from':{
        name:'enterprise',
        component(resolve){
            require(['../views/enterprise/enterpriseList.vue'],resolve);
        }
    },

    /*服务单位-详细路由*/
    '/enterprise/:id':{
        name:'enterpriseDetail',
        component(resolve){
            require(['../views/enterprise/enterpriseDetail.vue'],resolve);
        }
    },

    /*钣喷服务-输入*/
    '/banpen/step1/':{
        name:'banpenStep1',
        component(resolve){
            require(['../views/banpen/banpenStep1.vue'],resolve);
        }
    },

    /*服务内容-输入*/
    '/banpen/step2/':{
        name:'banpenStep2',
        component(resolve){
            require(['../views/banpen/banpenStep2.vue'],resolve);
        }
    },

    /*车辆信息-输入*/
    '/banpen/carInfo/':{
        name:'carInfo',
        component(resolve){
            require(['../views/banpen/carInfo.vue'],resolve);
        }
    },

    /*个人中心-首页*/
    '/ucenter/home':{
        name:'ucenterHome',
        component(resolve){
            require(['../views/user/ucenterHome.vue'],resolve);
        }
    },

    /*个人资料-输入*/
    '/ucenter/profile':{
        name:'ucenterProfile',
        component(resolve){
            require(['../views/user/ucenterProfile.vue'],resolve);
        }
    },

    /*绑定手机-输入*/
    '/ucenter/boundPhone':{
        name:'boundPhone',
        component(resolve){
            require(['../views/user/boundPhone.vue'],resolve);
        }
    },

    /*意见反馈-输入*/
    '/feedback/create':{
        name:'feedbackInput',
        component(resolve){
            require(['../views/user/feedbackInput.vue'],resolve);
        }
    },

    /*关于我们*/
    '/about':{
        name:'aboutus',
        component(resolve){
            require(['../views/about/aboutus.vue'],resolve);
        }
    },



    /*我的车辆-输入*/
    '/ucenter/car/:from':{
        name:'ucenterCar',
        component(resolve){
            require(['../views/user/ucenterCar.vue'],resolve);
        }
    },

    /*车主评价-输入*/
    '/comment/create':{
        name:'commentInput',
        component(resolve){
            require(['../views/user/commentInput.vue'],resolve);
        }
    },

    /*提交成功-提示*/
    '/tip/success/:type':{
        name:'successTips',
        component(resolve){
            require(['../views/common/successTips.vue'],resolve);
        }
    },

    /*我的评价-列表*/
    '/ucenter/comments':{
        name:'commentList',
        component(resolve){
            require(['../views/user/commentList.vue'],resolve);
        }
    },

    /*订单列表*/
    '/ucenter/orders/:tab':{
        name:'orderList',
        component(resolve){
            require(['../views/user/orderList.vue'],resolve);
        }
    },

    /*订单详情*/
    '/ucenter/order/:id':{
        name:'orderDetail',
        component(resolve){
            require(['../views/user/orderDetail.vue'],resolve);
        }
    },
    /*订单车辆*/
    '/ucenter/orders/orderCar':{
        name:'orderCar',
        component(resolve){
            require(['../views/banpen/orderCar.vue'],resolve);
        }
    },

    /*车型品牌-Index List*/
    '/car/brands/:from':{
        name:'carBrandList',
        component(resolve){
            require(['../views/common/carBrandList.vue'],resolve);
        }
    },

    /*车型-列表*/
    '/car/models/:cbId/:from':{
        name:'carTypeList',
        component(resolve){
            require(['../views/common/carTypeList.vue'],resolve);
        }
    },

    /*车主福利-列表*/
    '/promo/list':{
        name:'promoList',
        component(resolve){
            require(['../views/promo/promoList.vue'],resolve);
        }
    },

    /*车主福利-详情*/
    '/promo/:id':{
        name:'promoDetail',
        component(resolve){
            require(['../views/promo/promoDetail.vue'],resolve);
        }
    },

    /*客服列表*/
    'customerService/list':{
        name:'customerServiceList',
        component(resolve){
            require(['../views/carDoctor/customerServiceList.vue'],resolve);
        }
    },
    /*车大夫-列表*/
    '/carDoctor/list':{
        name:'carDoctorList',
        component(resolve){
            require(['../views/carDoctor/carDoctorList.vue'],resolve);
        }
    },

    /*车大夫-详情*/
    '/carDoctor/:id':{
        name:'carDoctorDetail',
        component:require('../views/carDoctor/carDoctorDetail.vue')
    },
    /* 邀请活动 */
    '/promo/invite_activity':{
        name:'invite_activity',
        component(resolve){
            require(['../views/promo/invite_activity.vue'],resolve)
        }
    },
    /* 地址信息 */
    '/promo/activity_addr/:id':{
        name:'activity_addr',
        component(resolve){
            require(['../views/promo/activity_addr.vue'],resolve)
        }
    },
    /* 上门保养 */
    '/maintenance/:from':{
        name:'maintenance',
        component(resolve){
            require(['../views/maintenance/index.vue'],resolve)
        }
    },
    /* 保单详情 */
    '/maintenance/orderDetail/:id':{
        name:'maintenanceOrderDetail',
        component(resolve){
            require(['../views/maintenance/maintenanceOrderDetail.vue'],resolve);
        }
    },

    /* 确认保单 */
    '/maintenance/orderConfirm/:id':{
        name:'maintenanceOrderConfirm',
        component(resolve){
            require(['../views/maintenance/maintenanceOrderConfirm.vue'],resolve);
        }
    },
    /* 保单取消 */
    '/maintenance/orderCancel/:id':{
        name:'maintenanceOrderCancel',
        component(resolve){
            require(['../views/maintenance/maintenanceOrderCancel.vue'],resolve);
        }
    },
    /* 新建保单人 */
    '/maintenance/orderNewContact':{
        name:'maintenanceOrderNewContact',
        component(resolve){
            require(['../views/maintenance/newContact.vue'],resolve);
        }
    },

    /* 保养-选择更多项目 */
    '/maintenance/maintenanceItems':{
        name:'maintenanceItems',
        component(resolve){
            require(['../views/maintenance/maintenanceItems.vue'],resolve);
        }
    },
    /* 确认订单 */
    '/maintenance/maintenanceOrderConfirm':{
        name:'maintenanceOrderConfirm',
        component(resolve){
            require(['../views/maintenance/maintenanceOrderConfirm.vue'],resolve);
        }
    },
    /*保单评价-输入*/
    '/maintenanceComment/create':{
        name:'maintenanceCommentInput',
        component(resolve){
            require(['../views/maintenance/maintenanceCommentInput.vue'],resolve);
        }
    },
    /* 检测报告*/
    '/maintenance/detail/:id':{
        name:'maintenanceDetail',
        component(resolve){
            require(['../views/maintenance/maintenanceDetail.vue'],resolve);
        }
    }
};
export default routers;
